import {
    get,
    post,
    postExcel
} from '../utils/request.js';

/* 获取当前用户邮箱 */
export const getUser = (params) => get('/b/privs/userInfo/getUser', params);
/* 提交下载申请 */
export const submitApprove = (params) => post('/qyxx/reportAppro/submitApprove', params);
/* 查看企业授权信息 */
export const searchAuthByShtyxydm = (params) => post('/qyxx/authorize/searchAuthByShtyxydm', params);
//下载企业画像报告
export const genReport = (params) => get('/qyxx/qyReport/genReport', params);

/* 画像系列 */
export const t0 = (params) => get('/customer/image/getFxxx', params);   //风险信息
export const t1 = (params) => get('/customer/image/getGjjxx', params); //公积金信息
export const t2 = (params) => get('/customer/image/getJbxx', params); //基本信息
export const t3 = (params) => get('/customer/image/getSbxx', params); //社保信息
export const t4 = (params) => get('/customer/image/getTagAndScore', params); //标签/评分信息
export const t5 = (params) => get('/customer/image/getZcjyxx', params); //资产交易信息



//画像搜索页及公司信息首页
/* 根据输入内容模糊查询企业名称 */
export const qyxxLikeQuery = (params) => post('/qyxx/authorize/qyxxLikeQuery', params);
/* 搜索并保存记录 */
export const getCbInfo = (params) => post('/qyxx/copic/getCbInfo', params);
/* 获取查询记录 */
export const getHistory = (params) => post('/qyxx/copic/getHistory', params);
//企业自身风险概况
export const getZsfx = (params) => get('/qyxx/jrfkFxyjPushHistory/getFxtj', params);
//企业关联风险概况
export const getGlfx = (params) => get('/qyxx/jrfkFxyjPushHistory/getglfxtj', params);
//企业自身风险qyxx/copic
export const getZsfxPage = (params) => post('/qyxx/copic/zsfxPage', params);
//企业关联风险qyxx/copic
export const getGlfxPage = (params) => post('/qyxx/copic/glfxPage', params);
//法人关联企业
export const relationCo = (params) => post('/qyxx/copic/relationCo', params);
//企业授权状态
export const sqStatus = (params) => post('/qyxx/copic/SqStatus', params);
//查询企业标签
export const getqySign = (params) => get('/customer/qySign/qySign', params);
//企业标识
export const qySign = (params) => post('/qyxx/copic/qySign', params);
//经营异常
export const jyyc = (params) => post('/qyxx/copic/jyyc', params);
//根据风险大类查询风险细类
export const relatChild = (params) => post('/qyxx/relat/relatChild', params);
//公司关联风险细类数量
export const glfxxlCount = (params) => post('/qyxx/copic/glfxxlCount', params);
//公司自身风险细类数量
export const zsfxxlCount = (params) => post('/qyxx/copic/zsfxxlCount', params);
//企业舆情趋势
export const getOpinionChart = (params) => post('/qyxx/copic/getOpinionChart', params);
//企业舆情信息
export const getOpinionInfo = (params) => post('/qyxx/copic/getOpinionInfo', params);
//获取企业得分
export const getScoring = (params) => post('/qyxx/copic/getScoring', params);

//企业基本信息
//获取股东信息
export const getGdxx = (params) => post('/qyxx/copic/getGdxx', params);
//获取高管信息
export const getGgxx = (params) => post('/qyxx/copic/getGgxx', params);
//分支机构
export const fzjg = (params) => post('/qyxx/copic/fzjg', params);
//企业对外投资
export const qyDwtz = (params) => post('/qyxx/copic/qyDwtz', params);
//法人对外投资
export const frDwtz = (params) => post('/qyxx/copic/frDwtz', params);
//工商变更
export const gsbg = (params) => post('/qyxx/copic/gsbg', params);
//诚实授信红名单
export const cssxhmd = (params) => post('/qyxx/copic/cssxRedPage', params);
//社会法人表彰
export const shfrbz = (params) => post('/qyxx/copic/shfrbz', params);
//行政奖励 
export const getXzjlInfo = (params) => get('/qyxx/jrfkXzxxXzjlxx/getAdministrativeRewardsList', params);



//关联图谱
//关系图谱
export const gxPersonByCo = (params) => post('/qyxx/copic/gxPersonByCo', params);
//企业图谱
export const qyPic = (params) => post('/qyxx/copic/qyPic', params);
//股权穿透
export const gqct = (params) => post('/qyxx/copic/gqct', params);

//社保公积金缴纳
//社保缴费信息
export const sbjfxx = (params) => post('/qyxx/copic/sbjfxx', params);
//社保实缴金额
export const sbsjjetb = (params) => post('/qyxx/copic/sbsjjetb', params);
//年末参保人数图表
export const nmcbtb = (params) => post('/qyxx/copic/nmcbtb', params);
//社保欠缴信息
export const sbqjPage = (params) => post('/qyxx/copic/sbqjPage', params);
//公积金缴存信息
export const gjjjcPage = (params) => post('/qyxx/copic/gjjjcPage', params);
//社保概况
export const getSbgk = (params) => post('/qyxx/copic/sbgk', params);
//社保概况年份
export const getSbgkNf = (params) => post('/qyxx/copic/sbgknf', params);
//社保分析
export const getSbfx = (params) => post('/qyxx/copic/sbfx', params);
//公积金概况
export const getGjjgk = (params) => post('/qyxx/copic/gjjgk', params);
//公积金概况年份
export const getGjjgkNf = (params) => post('/qyxx/copic/gjjgknf', params);
//公积金分析
export const getGjjfx = (params) => post('/qyxx/copic/gjjfx', params);



//税务信息
//纳税资质
export const nszz = (params) => post('/qyxx/copic/nszz', params);
//A及纳税人
export const payTaxes = (params) => post('/qyxx/copic/payTaxes', params);
//重大税收违法信息
export const taxIllegal = (params) => post('/qyxx/copic/taxIllegal', params);
//欠税信息
export const qsxx = (params) => post('/qyxx/copic/qsxx', params);
//增值税信息 
export const getAdministrative = (params) => get('/qyxx/jrfkZzsjsxxcx/getAdministrativeRewardsList', params);
//所得税信息 
export const getQysdsinfo = (params) => get('/qyxx/jrfkQysdsjsxx/getList', params);
//私营企业增值税
export const getSyqyzzs = (params) => get('/qyxx/jrfkTax/syqyzzs', params);
//私营企业所得税
export const getSyqysds = (params) => get('/qyxx/jrfkTax/syqysds', params);
//股份制企业增值税
export const getGfzqyzzs = (params) => get('/qyxx/jrfkTax/gfzqyzzs', params);
//其他增值税
export const getQtzzs = (params) => get('/qyxx/jrfkTax/qtzzs', params);
//其他股份制企业所得税
export const getQtgfzqysds = (params) => get('/qyxx/jrfkTax/qtgfzqysds', params);
//出口货物退增值税
export const getCkhwtzzs= (params) => get('/qyxx/jrfkTax/ckhwtzzs', params);


//发票
//获取年份下拉框
export const getYear = (params) => post('/qyhx/cropBill/getYear', params);
//发票分析--发票金额
//销项发票
export const getOutBillByYear = (params) => post('/qyhx/cropBill/getOutBillByYear', params);
//进项发票
export const getInBillByYear = (params) => post('/qyhx/cropBill/getInBillByYear', params);
//发票分析--发票数量
//销项数量
export const getOutBillCount = (params) => post('/qyhx/cropBill/getOutBillCount', params);
//进项数量
export const getInBillCount = (params) => post('/qyhx/cropBill/getInBillCount', params);
//发票分析--客户数量
export const getKeHuCount = (params) => post('/qyhx/cropBill/getKeHuCount', params);
//发票分析--供货商数量
export const getGysCount = (params) => post('/qyhx/cropBill/getGysCount', params);
//发票概况
export const billSurvey = (params) => post('/qyhx/cropBill/billSurvey', params);
//销项发票统计
export const outPutBillTj = (params) => post('/qyhx/cropBill/outPutBillTj', params);
//销项发票税率统计
export const outPutBillTax = (params) => post('/qyhx/cropBill/outPutBillTax', params);
//销项发票
export const outPutBill = (params) => post('/qyhx/cropBill/outPutBillPage', params);
//十大主营产品
export const tenMainProd = (params) => post('/qyhx/cropBill/tenMainProd', params);
//销售商品统计
export const saleProd = (params) => post('/qyhx/cropBill/saleProdPage', params);
//十大客户统计
export const tenKh = (params) => post('/qyhx/cropBill/tenKh', params);
//客户统计
export const keHuTongJi = (params) => post('/qyhx/cropBill/keHuTongJiPage', params);
//进项发票统计
export const InBillTongJi = (params) => post('/qyhx/cropBill/InBillTongJi', params);
//进项发票税率统计
export const InBillTax = (params) => post('/qyhx/cropBill/InBillTax', params);
//进项发票
export const InBill = (params) => post('/qyhx/cropBill/InBillPage', params);
//十大采购商品
export const tenPurchaseProd = (params) => post('/qyhx/cropBill/tenPurchaseProd', params);
//采购商品统计
export const purchaseProdTj = (params) => post('/qyhx/cropBill/purchaseProdTjPage', params);
//十大供应商
export const tenGys = (params) => post('/qyhx/cropBill/tenGys', params);
//供应商统计
export const gysTongJi = (params) => post('/qyhx/cropBill/gysTongJiPage', params);

//企业年报
export const getQynb = (params) => post('/qyxx/copic/qynb', params);
//企业年报年份
export const getQynbnf = (params) => post('/qyxx/copic/qynbnf', params);

//经营
//资质证书信息
export const getZzzsList = (params) => post('/qyxx/copic/zzzs', params);
//工商异常信息
export const getGsycxxList = (params) => get('/qyxx/jrfkZlxx/getGsycxxList', params);
//工商吊销信息
export const getGsdxxxList = (params) => get('/qyxx/jrfkZlxx/getGsdxxxList', params);
//行政许可信息
export const getXzxxInfoList = (params) => get('/qyxx/jrfkZlxx/getXzxxInfoList', params);
//异常经营信息
export const getYcjyInfoList = (params) => get('/qyxx/jrfkZlxx/getYcjyInfoList', params);
//融资信息
export const getQyrzInfoList = (params) => get('/qyxx/jrfkZlxx/getQyrzInfoList', params);
//动产抵押信息
export const getDcdyInfoList = (params) => get('/qyxx/jrfkZlxx/getDcdyInfoList', params);
//股权出质信息
export const getGqczInfoList = (params) => get('/qyxx/jrfkZlxx/getGqczInfoList', params);
//拖欠工资信息
export const getTqgzInfoList = (params) => get('/qyxx/jrfkZlxx/getTqgzInfoList', params);
//招投标信息
export const getZtbInfoList = (params) => get('/qyxx/jrfkZlxx/getZtbInfoList', params);
//海关高级认证信息
export const getHggjrzInfoList = (params) => get('/qyxx/jrfkZlxx/getHggjrzInfoList', params);
//安全生产黑名单
export const getAqschmdInfoList = (params) => get('/qyxx/jrfkZlxx/getAqschmdInfoList', params);
//海关注册信息
export const gteHgzc = (params) => post('/qyxx/copic/hgzc', params);
//海关信用等级
export const gteHgxydj = (params) => post('/qyxx/copic/hgxydj', params);
//企业法人担保
export const getQyfrdb = (params) => post('/qyxx/copic/qyfrdb', params);
//合同基本信息
export const getHtjbInfo = (params) => get('/qyxx/jrfkQyfrHtjbxx/getList', params);
//合同履约信息
export const getHtlyInfo = (params) => get('/qyxx/jrfkQyfrHtlyzxgzxx/getList', params);
//政府采购信息
export const getZfcgInfo = (params) => get('/qyxx/jrfkZfcght/getList', params);
//环保信用评价
export const getHbxypjInfo = (params) => get('/qyxx/jrfkQyfrHbxypjqk/getList', params);

//法律信息
//法院公告信息
export const fyggXx = (params) => post('/qyxx/copic/fyggXx', params);
//开庭公告信息
export const ktggXx = (params) => post('/qyxx/copic/ktggXx', params);
//案件趋势
export const getAjqsInfo = (params) => get('/qyxx/jrfkZlxx/getAjqsInfo', params);
//裁判文书信息
export const getCpwsInfoList = (params) => get('/qyxx/jrfkZlxx/getCpwsInfoList', params);
//被执行人信息
export const getBzxrInfoList = (params) => get('/qyxx/jrfkZlxx/getBzxrInfoList', params);
//失信被执行人信息
export const getSxbzxrInfoList = (params) => get('/qyxx/jrfkZlxx/getSxbzxrInfoList', params);
//行政处罚信息
export const xzcf = (params) => post('/qyxx/copic/xzcf', params);
//惩戒名单
export const getCjmdInfoList = (params) => get('/qyxx/jrfkZlxx/getCjmdInfoList', params);
//公示名单
export const getGsmdInfoList = (params) => get('/qyxx/jrfkZlxx/getGsmdInfoList', params);
//海关失信认证信息
export const getHgsxInfoList = (params) => get('/qyxx/jrfkZlxx/getHgsxInfoList', params);
//出入境检验检疫严重失信信息
export const getCrjjyjysxInfoList = (params) => get('/qyxx/jrfkZlxx/getCrjjyjysxInfoList', params);
//严重质量失信信息
export const getYzzlsxInfoList = (params) => get('/qyxx/jrfkZlxx/getYzzlsxInfoList', params);
//采购不良行为
export const getZgblInfoList = (params) => get('/qyxx/jrfkZlxx/getZgblInfoList', params);
//信用承诺
export const getXycn = (params) => post('/qyxx/copic/xycn', params);
//破产案件信息
export const getPcaj = (params) => post('/qyxx/copic/pcaj', params);
//行政强制信息
export const getXzqzInfoList = (params) => get('/qyxx/jrfkXzxxXzqzxx/getList', params);

//知识产权
//专利信息查询
export const getZlxxList = (params) => get('/qyxx/jrfkZlxx/getZlxxList', params);
//商标信息查询
export const getSbxxList = (params) => post('/qyxx/copic/sbsq', params);
//作品著作权
export const getZpzzqList = (params) => post('/qyxx/copic/zpzzq', params);
//软件著作权
export const getRjzzqList = (params) => get('/qyxx/jrfkZlxx/getRjzzqList', params);
//科技研发信息
export const getKjyf = (params) => post('/qyxx/copic/kjyf', params);
//知识产权质押
export const getZscqInfo = (params) => get('/qyxx/jrfkZscqzyxx/getList', params);

//生产信息
//企业用水图表
export const getQyystb = (params) => post('/qyxx/copic/qyystb', params);
//企业用水图表
export const getQyyqtb = (params) => post('/qyxx/copic/qyyqtb', params);
//用能信息
export const getQyynxx = (params) => post('/qyxx/copic/qyynxx', params);
//企业缴费信息
export const getYnjfxx = (params) => post('/qyxx/copic/ynjfxx',params);
//企业欠缴信息
export const getYnqjxx = (params) => post('/qyxx/copic/ynqjxx',params)
